reftests: Add a test for matching by subtype
authorBenjamin Otte <otte@redhat.com>
Sat, 14 May 2011 11:36:00 +0000 (13:36 +0200)
committerBenjamin Otte <otte@redhat.com>
Wed, 18 May 2011 20:17:56 +0000 (22:17 +0200)
tests/reftests/Makefile.am
tests/reftests/css-match-subtype.css [new file with mode: 0644]
tests/reftests/css-match-subtype.ref.ui [new file with mode: 0644]
tests/reftests/css-match-subtype.ui [new file with mode: 0644]

index d3476de3a8dbc9f6d148cf177f54afacdfa22b93..5e83d08e4156fb4e1d9b3eaec2b408278ba030e9 100644 (file)
@@ -29,6 +29,9 @@ EXTRA_DIST += \
        box-packing.css \
        box-packing.ref.ui \
        box-packing.ui \
+       css-match-subtype.css \
+       css-match-subtype.ref.ui \
+       css-match-subtype.ui \
        css-match-type.css \
        css-match-type.ref.ui \
        css-match-type.ui \
diff --git a/tests/reftests/css-match-subtype.css b/tests/reftests/css-match-subtype.css
new file mode 100644 (file)
index 0000000..8671126
--- /dev/null
@@ -0,0 +1,11 @@
+GtkContainer {
+  engine: none;
+  background-image: none;
+  background-color: green;
+  border-radius: 0;
+  border-style: none;
+}
+
+NotGtkContainer {
+  background-color: red;
+}
diff --git a/tests/reftests/css-match-subtype.ref.ui b/tests/reftests/css-match-subtype.ref.ui
new file mode 100644 (file)
index 0000000..d8d31c3
--- /dev/null
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<interface>
+  <!-- interface-requires gtk+ 3.0 -->
+  <object class="GtkWindow" id="window1">
+    <property name="can_focus">False</property>
+    <property name="type">popup</property>
+    <child>
+      <object class="GtkImage" id="image1">
+        <property name="visible">True</property>
+        <property name="can_focus">False</property>
+        <property name="pixbuf">green-20x20.png</property>
+      </object>
+    </child>
+  </object>
+</interface>
diff --git a/tests/reftests/css-match-subtype.ui b/tests/reftests/css-match-subtype.ui
new file mode 100644 (file)
index 0000000..ee6db3a
--- /dev/null
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<interface>
+  <!-- interface-requires gtk+ 3.0 -->
+  <object class="GtkWindow" id="window1">
+    <property name="width_request">20</property>
+    <property name="height_request">20</property>
+    <property name="can_focus">False</property>
+    <property name="type">popup</property>
+    <property name="name">window</property>
+    <style>
+      <class name="window" />
+    </style>
+  </object>
+</interface>